package ThisPractise02;

public class BankTest {
    public static void main(String[] args) {
        Bank b1=new Bank();
        /*创建用户*/
        b1.addCustomer("杰克","李");
        b1.addCustomer("汤姆","陈");
        b1.addCustomer("汤姆","陈");

        /*取用户下标进行对应的操作*/
        b1.getCustomers(0).setAccount(new Account(1000));
        b1.getCustomers(0).getAccount().withdraw(50);
        b1.getCustomers(2).setAccount(new Account(0));
        b1.getCustomers(2).getAccount().deposit(200);
    }
}
